package application;

import vnu.ACLMessageX;
import vnu.JobAgent;
import jade.core.AID;
import jade.core.Agent;
import jade.core.behaviours.WakerBehaviour;
import jade.domain.AMSService;
import jade.domain.ams;
import jade.lang.acl.ACLMessage;

public class MainAgent extends JobAgent{
	private String name = "lannv";
	AID id = new AID(name, AID.ISLOCALNAME);
	
	protected void setup(){
		super.setup();
		System.out.print("Hello  "+ id.getName()+" is already!");
		//ACLMessage mess = new ACLMessage();
		
	
	
	for (int i = 0; i <30; i++) {
		ACLMessageX message = new ACLMessageX(getLocalName(), "mob");
		message.setSource(getAID());
		message.setPerformative(ACLMessage.REQUEST);
		message.setContent("Hello"+i);
		sendMessage(message);			

	}

	}
	
	
	}

